package lt.ntec.danblog.server.core.validator.rules;

import lt.ntec.danblog.server.core.Message;
import lt.ntec.danblog.server.core.Messageable;
import lt.ntec.danblog.server.core.validator.Rule;

public class TagsRule extends PatternRule implements Rule {

    @Override
    protected String getPattern() {
        return "^[\\w\\s!-~]+[\\w\\s\\d!-~]*";
    }

    @Override
    public Messageable getMessage() {
        return new Message(Messageable.Type.NOTICE, "Tags contain invalid input");
    }
}
